import { BaseWindow } from "../../../component/window/BaseWindow";
import { ILayer } from "../../../mvc/interfaces/ILayer";
import { GlobalStyle } from "../../../common/global/GlobalStyle";
import { ObjCreate } from "../common/ObjCreate";
import { GTextArea } from "../../../../com/mui/controls/GTextArea";
import { PublicMessageConfig } from "../../resource/PublicMessageConfig";
//class CutCountDetails
    
    export  class CutCountDetails extends BaseWindow
    {
        constructor(arg1: ILayer=null)
        {
            super(arg1);
            setSize(313, 352);
            titleHeight = 26;
            title = "女娲秘境";
            return;
        }

        protected /* override */ createChildren(): void
        {
            super.createChildren();
            var loc1=GlobalStyle.textFormat6;
            loc1.bold = true;
            loc1.leading = 6;
            var loc2=GlobalStyle.textFormat1;
            loc2.leading = 8;
            var loc3=GlobalStyle.textFormatGreen;
            loc3.leading = 6;
            ObjCreate.createBg(17, 39, 277, 266, this);
            var loc4;
            (loc4 = ObjCreate.createTextField("打钱副本新玩法，只要敢连斩，金币都在这里，最高可获得23万奖励！", 28, 47, 255, 40, this, loc1)).multiline = true;
            loc4.wordWrap = true;
            var loc5=new GTextArea();
            ObjCreate.setObjAttri(loc5, 60, 90, 210, 175, this);
            loc5.wordWrap = true;
            loc5.editable = false;
            loc5.styleName = "GTextArea";
            loc5.wordWrap = true;
            var loc6;
            (loc6 = ObjCreate.createTextField("小提示：击杀小怪累计连斩数，获得连斩加成可轻松击败BOSS获得大量非绑定铜钱。", 28, 260, 255, 40, this, loc3)).multiline = true;
            loc6.wordWrap = true;
            var loc7;
            (loc7 = ObjCreate.createGButton("确定", 122, 312, 52, 26, this, "ButtonLarge")).addEventListener(flash.events.MouseEvent.CLICK, this.onBtnOKHandler);
            loc5.htmlText = "<textFormat leading = \'8\'><font color=\'#B1efff\'>" + PublicMessageConfig.instance.getCoinCopyTextByName("CoinCopyDesc") + "</font></textFormat>";
            return;
        }

        /* internal  */onBtnOKHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            this.hide();
            return;
        }

        public static get instance(): CutCountDetails
        {
            if (!CutCountDetails._instance) 
            {
                CutCountDetails._instance = new CutCountDetails();
            }
            return CutCountDetails._instance;
        }

        /* internal */ static /* var */_instance: CutCountDetails;
    }
